<template>
  <div class="workshops_container">
      <!-- <dv-loading v-if="loading"></dv-loading> -->
      <list-header
      :search.sync="search"
      :type="type"
      :title="title"
      icon="capsules"
      searchplaceholder="请输入设备名称/编号"
      selectplaceholder="请选择安装地点"
      @on-search="SearchMthods"
      @on-index="resetMethods"
      :dateSel="true"
    />
      <div class="workshops_main">
        <c-tbale :columns="columns" :tableData="tableData"  :tableHeight="tableHeight"/>
        <div class="page_con">
        <el-pagination
          @current-change="currentchange"
          @prev-click="currentchange"
          @next-click="currentchange"
          :background="true"
          layout="prev, pager, next"
          :total="totalCount"
          :hide-on-single-page="totalCount < 2 ? true : false "
        >
        </el-pagination>
      </div>
      </div>
  </div>
</template>

<script>
import listHeader from "@/components/listHeader/index";
import cTbale from "../../../components/tablePage/tablePage";
import minix from "../../../mixins/table";
export default {
  components: {
    listHeader,
    cTbale,
  },
  mixins: [minix],
  data(){
    return{
      type:"medium",
      title:"介质消耗",
      indexurl:"MediumPage",
      delurl: "MediumDel",
      columns:[
        { text: "介质名称", prop: "NAME", width: '15%' },
        { text: "设备", prop: "EQUIP_INFO.NAME", width: '15%' },
        { text: "添加地点", prop: "SITE", width: '10%'},
        { text: "添加量", prop: "AMOUNT", width: '10%' },
        { text: "时间", prop: "createTime", width: '10%' },
        { text: "班次", prop: "BANCI", width: '10%' },
        { text: "添加人", prop: "CREATOR", width: '10%' },
      ],
    }
  }
};
</script>

<style>
</style>